//
//  ProductCommon2TableViewCell.m
//  ShoppingExperience
//
//  Created by LiYinDi on 15-5-18.
//  Copyright (c) 2015年 RuiBen. All rights reserved.
//

#import "ProductCommon2TableViewCell.h"

@implementation ProductCommon2TableViewCell

- (void)awakeFromNib {
    // Initialization code
    _addToShopCartBtn.layer.borderColor=[[UIColor colorWithRed:210.0f/255.0f green:171.0f/255.0f blue:57.0f/255.0f alpha:1] CGColor];
    _addToShopCartBtn.layer.borderWidth= 1.0f;
    _addToShopCartBtn.layer.cornerRadius=3;
    
    _buyBtn.layer.borderColor=[[UIColor colorWithRed:196.0f/255.0f green:151.0f/255.0f blue:15.0f/255.0f alpha:1] CGColor];
    _buyBtn.layer.borderWidth= 1.0f;
    _buyBtn.layer.cornerRadius=3;
    
    _productImageView.layer.borderColor=[[UIColor colorWithRed:239.0f/255.0f green:239.0f/255.0f blue:239.0f/255.0f alpha:1] CGColor];
    _productImageView.layer.borderWidth= 1.0f;
    _productImageView.layer.masksToBounds = YES;
    _productImageView.layer.cornerRadius=10;

}
-(IBAction)addToShopCart:(UIButton *)sender
{
    if ([self.delegate respondsToSelector:@selector(addToShopCartClick:)]) {
        
        [self.delegate addToShopCartClick:sender.tag];
    }
    
}
-(IBAction)buyBtnClick:(UIButton *)sender
{
    if ([self.delegate respondsToSelector:@selector(buyButtonClick:)]) {
        
        [self.delegate buyButtonClick:sender.tag];
    }
    
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
